package edu.towson.cosc.cosc455.jdehlinger.compiler;

import edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer;

public class MySyntaxAnalyzer implements SyntaxAnalyzer {

	@Override
	// #HAI head? comment? #KTHXBYE
	public void lolcode() {
		if (!MyCompiler.token.equalsIgnoreCase(LexicalTokens.DOC_BEGIN)){
			System.err.println("SYNTAX ERROR: " 
					+ MyCompiler.token + "when " + LexicalTokens.DOC_BEGIN
					+ "was expected.");
			System.exit(0);
		}
		// add to parse tree
		MyCompiler.lexer.getNextToken();
		
		if (MyCompiler.token.equalsIgnoreCase(LexicalTokens.HEAD_BEGIN))
			head();
		else if (MyCompiler.token.equalsIgnoreCase(LexicalTokens.COMMENT_BEGIN))
			comment();
		
		if (!MyCompiler.token.equalsIgnoreCase(LexicalTokens.DOC_END)){
			System.err.println("SYNTAX ERROR: " 
					+ MyCompiler.token + "when " + LexicalTokens.DOC_END
					+ "was expected.");
			System.exit(0);
		}
		// check nothing else 
	}

	@Override
	public void comment() {
		// TODO Auto-generated method stub

	}

	@Override
	public void head() {
		// TODO Auto-generated method stub

	}

	@Override
	public void title() {
		// TODO Auto-generated method stub

	}

	@Override
	public void paragraph() {
		// TODO Auto-generated method stub

	}

	@Override
	public void bold() {
		// TODO Auto-generated method stub

	}

	@Override
	public void italics() {
		// TODO Auto-generated method stub

	}

	@Override
	public void list() {
		// TODO Auto-generated method stub

	}

	@Override
	public void item() {
		// TODO Auto-generated method stub

	}

	@Override
	public void audio() {
		// TODO Auto-generated method stub

	}

	@Override
	public void video() {
		// TODO Auto-generated method stub

	}

	@Override
	public void define() {
		// TODO Auto-generated method stub

	}

	@Override
	public void use() {
		// TODO Auto-generated method stub

	}

}
